package com.qf.service.Impl;

import com.qf.entity.StashList;
import com.qf.mapper.StashListMapper;
import com.qf.service.StashListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * --- 业精于勤,荒于嬉 ---
 *
 * @author Song
 * @date 2024/7/24
 * @desc First
 */
@Service
public class StashListServiceImpl implements StashListService {

    @Autowired
    private StashListMapper mapper;


    @Override
    public boolean deleteById(int id) {
        return mapper.delById(id);
    }


    @Override
    public List<StashList> findAll(HashMap<String, String> map) {
        return mapper.findAll(map);
    }

    @Override
    public boolean edit(HashMap<String, String> map) {
        return mapper.edit(map);
    }

    @Override
    public boolean addList(StashList stashList) {
        return mapper.addList(stashList);
    }

    @Override
    public boolean delListBatch(List<Integer> ids) {
        return mapper.delListBatch(ids);
    }



}
